<html>
<head><meta charset="utf-8"><title>Go to definition code instead of comment doc · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html">Go to definition code instead of comment doc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="205355744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Go%20to%20definition%20code%20instead%20of%20comment%20doc/near/205355744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Geobomatic <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html#205355744">(Jul 29 2020 at 13:28)</a>:</h4>
<p>Hi! I'm wondering if there's any option to go directly to the code of a definition instead of the doc comment?</p>



<a name="205356341"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Go%20to%20definition%20code%20instead%20of%20comment%20doc/near/205356341" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html#205356341">(Jul 29 2020 at 13:33)</a>:</h4>
<p>I kinda want it to go to the ident by default, don't really think there's much of a reason to go to the top of the comment block</p>



<a name="205356645"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Go%20to%20definition%20code%20instead%20of%20comment%20doc/near/205356645" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html#205356645">(Jul 29 2020 at 13:35)</a>:</h4>
<p>To clarify, goto definition already works that way</p>



<a name="205356661"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Go%20to%20definition%20code%20instead%20of%20comment%20doc/near/205356661" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html#205356661">(Jul 29 2020 at 13:35)</a>:</h4>
<p>I think it's only workspace symbols that is not yet fixed</p>



<a name="205356733"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Go%20to%20definition%20code%20instead%20of%20comment%20doc/near/205356733" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Geobomatic <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html#205356733">(Jul 29 2020 at 13:36)</a>:</h4>
<p>Oh I see, the project I'm on is indeed a workspace</p>



<a name="205357126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Go%20to%20definition%20code%20instead%20of%20comment%20doc/near/205357126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Go.20to.20definition.20code.20instead.20of.20comment.20doc.html#205357126">(Jul 29 2020 at 13:39)</a>:</h4>
<p>Ah, okay</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>